package com.example.provider.javastudy.thread.atomic;

import java.util.concurrent.atomic.AtomicInteger;

public class TestThread {
   
    public static void main(String[] args) throws InterruptedException {
        AtomicInteger atomicI =new AtomicInteger();
        int i = atomicI.decrementAndGet();
        System.out.println(i);
        int j = atomicI.incrementAndGet();
        System.out.println(j);
        int k = atomicI.addAndGet(3);
        System.out.println(k);

    }
   
}